﻿Public Class CentroEstudioNegocio

    Function insertarCentroEstudio(ByVal a As String, ByVal b As String, ByVal c As String)

        Dim modelo As New CentroEstudio()

        modelo.Distrito = a
        modelo.Nombre = b
        modelo.Direccion = c

        Dim dao As New CentroEstudioDAO
        Try
            Return dao.insertar(modelo)
        Catch ex As Exception
            Throw ex
        End Try

    End Function

    Public Function buscarPorNombre(ByVal distrito As String) As Collection
        Dim dao As New CentroEstudioDAO
        Return dao.buscarPorNombre(distrito)
    End Function



    Public Function obtener(ByVal idCentroEstudio As Integer) As CentroEstudio
        Dim dao As New CentroEstudioDAO
        Return dao.obtener(idCentroEstudio)
    End Function

    Public Sub eliminar(ByVal idCentroEstudio As Integer)
        Dim dao As New CentroEstudioDAO
        dao.eliminar(idCentroEstudio)
    End Sub




End Class
